import numpy as np
arr1d=np.array([1,2,3])
print(arr1d)

arr2d=np.array([[1,2],[3,4]])
print(arr2d)

arr3d=np.array([[[1,2,3],[4,5,6],[7,8,9]]])
print(arr3d)

arr1=np.empty((3,3))
print(arr1)

arr2=np.arange(1,20,5)
print(arr2)

arr3=np.linspace(1,20,6)
print(arr3)

arr4=np.array([1,2,3],dtype=np.float32)
print(arr4)

arr5=np.ones((3,3),dtype='int32')
print(arr5)

data=np.array([[1,2,3],[4,5,6]])
float_data=data.astype(np.float32)
print(float_data)